package com.xinqi.modules.stats.score.service;

import com.xinqi.common.mybatis.data.service.BaseService;
import com.xinqi.modules.stats.score.domain.CourseTotalScoreContentSonEntity;
import com.xinqi.modules.stats.score.dto.req.CourseTotalScoreContentSonClassDTO;
import com.xinqi.modules.stats.score.dto.req.CourseTotalScoreContentSonSetDTO;
import com.xinqi.modules.stats.score.dto.req.CourseTotalScoreStudentCreateAllDTO;
import com.xinqi.modules.stats.score.dto.rsp.CourseTotalScoreContentSonResultDTO;

import java.util.List;

/**
 * 总成绩课程子成绩项目配置表服务层
 *
 * @author: system
 * @date: 2023/03/26
 */
public interface CourseTotalScoreContentSonService extends BaseService<CourseTotalScoreContentSonEntity> {

    // 获取子成绩项
    List<CourseTotalScoreContentSonResultDTO> findTotalScoreContentSon(CourseTotalScoreContentSonClassDTO dto);

    // 设置子成绩项
    boolean setTotalScoreContentSon(CourseTotalScoreContentSonSetDTO dto);

    // 获取已设置子项
    List<CourseTotalScoreContentSonResultDTO> findExistTotalScoreContentSon(CourseTotalScoreContentSonClassDTO dto);

    boolean syncStudentTypeContent(CourseTotalScoreStudentCreateAllDTO dto);

}
